package com.springboot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.springboot.model.po.*;

@Mapper
public interface OrderDetailetMapper {
	
	@Insert("insert into orderDetailet (orderId, foodId, quantity) values(#{orderId},#{foodId},#{quantity})")
	public int saveOrderDetailetBatch(@Param("orderId")Integer orderId,@Param("foodId")Integer foodId,@Param("quantity")Integer quantity);
	//多表联合，还需要食品信息
	public List<OrderDetailet> listOrderDetailetByOrderId(@Param("orderId")Integer orderId);
}
